﻿using System;
using System.ServiceModel;
using PumpStationServiceLibrary;
using SharedServiceLibrary;

namespace PumpStation
{
    class Program
    {
        static void Main()
        {
            //Console.Write("Hostname: ");
            //var hostname = Console.ReadLine();
            var serviceUri = new Uri("net.tcp://127.0.0.1:9000");
            using (var host = new ServiceHost(typeof (PumpStationService), serviceUri))
            {
                host.AddServiceEndpoint(typeof (IPumpStationService), new NetTcpBinding(), serviceUri);
                host.Open();
                Console.WriteLine("Service Running...");
                Console.ReadLine();
                host.Close();
            }
        }
    }
}
